package com.itHuangTao.tank.collisions;

import com.almasb.fxgl.dsl.FXGL;
import com.almasb.fxgl.entity.Entity;
import com.almasb.fxgl.physics.CollisionHandler;
import com.itHuangTao.tank.Config;
import com.itHuangTao.tank.GameType;

public class BulletBorderHandler extends CollisionHandler {
    public BulletBorderHandler() {
        super(GameType.BULLET,GameType.BORDER);
    }

    @Override
    protected void onCollisionBegin(Entity bullet, Entity border) {
        bullet.removeFromWorld();
    }
}
